package com.lv.dhart.ui.activity;


import android.text.TextUtils;

import com.lv.dhart.constant.AppConstant;
import com.lv.dhart.custom.fragment.baseframework.BaseActivity;
import com.lv.dhart.custom.fragment.baseframework.util.JumpParameter;
import com.lv.dhart.ui.activity.login.LoginActivity;
import com.lv.dhart.utilcode.util.SPStaticUtils;

public class StartUpActivity extends BaseActivity {


    @Override
    public void initViews() {

    }

    @Override
    public void initDatas(JumpParameter parameter) {
//        new AppUpdater(this, APK_UPDATE_URL).start();
        String token = SPStaticUtils.getString(AppConstant.APP_TOKEN_KEY);
        if (TextUtils.isEmpty(token)) {
            jump(LoginActivity.class);
        } else {
            jump(BottomBarActivity.class);
//            jump(EqualBottomBarActivity.class);
        }
        finishActivity();
    }

    @Override
    public void setEvents() {

    }
}